<%@ page language="java" import="java.util.*,com.entity.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	<link rel="stylesheet" type="text/css" href="css/style.css">
    <script src="/inc/js/ccorrect_btn.js"></script>
    <title>修改密码</title>
    
  </head>
  
  <body>
   <% Dlyh dlyh =(Dlyh) request.getSession().getAttribute("dlyh");
     System.out.println(dlyh.getZsxm()+"   "+dlyh.getLxfs()+"  真实姓名  联系方式" );
    %>
   <table class="TableTop" width="70%" align="center">
   <tbody><tr>
      <td class="left"></td>
      <td class="center subject">
       用户个人信息</td>
      <td class="right"><br></td>
   </tr>
</tbody></table>
<script type="text/javascript" src="js/checkname.js"></script>
<form method="post" action="dlyh.do?state=saveeditinfo" name="form1" >
  <table class="TableBlock" width="70%" align="center">
   <tr class="Big">
    <input type="hidden" value="<%=dlyh.getId() %>" name="yhid" id="yhid"/>
    <input type="hidden" value="<%=dlyh.getYhjb() %>" name="yhjb" id="yhjb">
    <input type="hidden" value="<%=dlyh.getZd().getId() %>" name="bmbh1" id="bmbh1"/>
    <input type="hidden" value="<%=dlyh.getSfzz() %>" name="sfzz" id="sfzz"/>
  	<td class="TableData" width="120">用户名：</td>
	<td class="TableData">
	 <%if((dlyh.getZd().getTypename().endsWith("县")||dlyh.getZd().getTypename().endsWith("区")||dlyh.getZd().getTypename().equals("武安市"))&&!dlyh.getZd().getTypename().equals("工业园区")){
	 %>
	   <input type="text" name="dlyhmc" class="SmallInput" onchange="checkdlyhmc(this.value)" id="dlyhmc" value="<%=dlyh.getDlyhmc() %>">
	   <%}else
	   {%><%=dlyh.getDlyhmc() %>
	   <%}
	   %>
	   <span name="dlyhmc_error" id="dlyhmc_error" style="color: red"></span>
	</td>
   </tr>
   <tr>
     <td class="TableData">用户密码：</td>
	<td class="TableData"><input type="password"  class="SmallInput" name="dlyhmm" id="dlyhmm" value="<%=dlyh.getDlyhmm() %>"></td>
   </tr>
    <tr>
     <td class="TableData">真实姓名：</td>
	<td class="TableData"><input type="text" class="SmallInput" name="zsxm" id="zsxm" value="<%=dlyh.getZsxm()%>"></td>
   </tr>
    <tr>
     <td class="TableData">联系方式：</td>
	<td class="TableData"><input type="text" class="SmallInput" name="lxfs" id="lxfs" value="<%=dlyh.getLxfs() %>"></td>
   </tr>
   <tr>
     <td class="TableData">部门：</td>
	<td class="TableData">
	   <%
	     Zd zd= (Zd)request.getSession().getAttribute("d");
	   if(dlyh.getZd().getTypename().startsWith("乡"))
	    {
	    %>
	     <%=zd.getTypename() %> <%=dlyh.getZd().getTypename() %>
	   <%} 
	   else{%>
	     <%=dlyh.getZd().getZdqc() %>
	   <%} %> 
	   </td>
   </tr>
  <tr align="center" >
    <td class="TableControl" colspan="2" >
      <input type="submit" value="保存修改" class='BigButton'>
      <input type="button" value="返回" class="BigButton" onclick="location.href='javascript:history.go(-1);'">
    </td>
  </tr>

 </table>
</form>
    
  </body>
</html>
